package part8;

/**
 * @author wcj
 * @Date 2021/5/16 17:03
 * @Version 1.0
 */
public class Part83 {

    /**
     * 私有方法即默认final修饰，无法被导出类重写，因此这里面调用
     */
    private void test() {
        System.out.println("private test");
    }

    public static void main(String[] args) {
        Part83 driver = new Driver();
        driver.test();
    }

}

class Driver extends Part83 {

    public void test() {
        System.out.println("public test");
    }
}
